<?php
/**
 * The template for displaying the footer.
 * Contains optional footer sidebar text widget, and 
 * and text widget which, if used, is displayed before the footer sidebar.
 * 
 * @package Behold
 * @since Behold 1.0.0
 */
?>

</div> <!-- Close of id="mimba"> -->
<div id="footer">

	<?php
		/* Couple of optional sidebar in the footer.
		 * If footer-text-widget is used, then it is displayed first, 
		 * then the normal footer sidebar.
		 */
		if ( ( is_active_sidebar( 'sidebar-3' ) or is_active_sidebar( 'sidebar-4') ) and !is_404() ) :
		?>
		<div id="footer-container">
		<?php
				get_sidebar( 'footer-text-widget' );
				get_sidebar( 'footer' );
		?>
		</div> <!-- close of  id="footer-container" -->
		<?php
		endif
	?>

<div id="site-generator" class="group">
	<div id="theme-author-credits">
		<?php print __("Powered by", 'Behold'); ?> 
		   <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'Behold' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'Behold' ); ?>" rel="generator">
		      <?php printf( __( '%s', 'Behold' ), 'WordPress' ); ?>
		   </a>
		<span style="padding:0 5px;">|</span>
		<?php print __("Theme ", 'Behold'); ?><a href="<?php echo esc_url( __( 'http://slatebalapa.wordpress.com/category/wordpress/', 'Behold' ) ); ?>" title="<?php esc_attr_e("Behold WordPress theme", "Behold");?>"> Behold </a>		
	</div>
	<div id="blog-author-credits">
		<a href="<?php echo site_url();?>">
			<?php bloginfo( 'name' );?>	
		</a><span> <?php printf( __('%s',"Behold"), bloginfo( 'description' ) );?></span>
	</div>
</div>
</div>
<?php
   /* Always have wp_footer() just before the closing </body>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to reference JavaScript files.
    */	
    wp_footer();
?>

</body>
</html>